package com.hui.model.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 创建订单参数
 */
@ApiModel(
        value = "OrderParam (创建订单参数)",
        description = "创建订单参数"
)
@Data
public class OrderParam {
    @ApiModelProperty("地址ID")
    private String addressId;
    @ApiModelProperty("砍价产品ID")
    private String bargainId;
    @ApiModelProperty("拼团ID")
    private String combinationId;
    @ApiModelProperty("优惠券ID")
    private String couponId;
    @ApiModelProperty("来源")
    private String from;
    @Size(
            max = 200,
            message = "长度超过了限制"
    )
    @ApiModelProperty("备注")
    private String mark;
    @NotBlank(
            message = "请选择支付方式"
    )
    @ApiModelProperty("支付方式")
    private String payType;
    @ApiModelProperty("门店电话")
    private String phone;
    @ApiModelProperty("拼团id 0没有拼团")
    private String pinkId;
    @ApiModelProperty("门店联系人")
    private String realName;
    @ApiModelProperty("秒杀产品ID")
    private String seckillId;
    @ApiModelProperty("配送方式 1=快递 ，2=门店自提")
    private String shippingType;
    @ApiModelProperty("使用积分 1-表示使用")
    private String useIntegral;
    @ApiModelProperty("支付渠道(0微信公众号1微信小程序) ")
    private String isChannel;
    @ApiModelProperty("门店ID")
    private String storeId;

    //唯一的订单ID
    private String key; //TODO 计划移除
}
